/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_vehiculosCriteria extends AbstractORMCriteria {
	public final IntegerExpression ve_id_vehiculo;
	public final StringExpression ve_patente;
	public final IntegerExpression ve_kilometraje;
	public final StringExpression ve_observacion;
	
	public Tbv_vehiculosCriteria(Criteria criteria) {
		super(criteria);
		ve_id_vehiculo = new IntegerExpression("ve_id_vehiculo", this);
		ve_patente = new StringExpression("ve_patente", this);
		ve_kilometraje = new IntegerExpression("ve_kilometraje", this);
		ve_observacion = new StringExpression("ve_observacion", this);
	}
	
	public Tbv_vehiculosCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_vehiculos.class));
	}
	
	public Tbv_vehiculosCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_rutaCriteria createTbv_rutaCriteria() {
		return new Tbv_rutaCriteria(createCriteria("ORM_Tbv_ruta"));
	}
	
	public Tbv_vehiculos uniqueTbv_vehiculos() {
		return (Tbv_vehiculos) super.uniqueResult();
	}
	
	public Tbv_vehiculos[] listTbv_vehiculos() {
		java.util.List list = super.list();
		return (Tbv_vehiculos[]) list.toArray(new Tbv_vehiculos[list.size()]);
	}
}

